package com.peas.platform.module.icims.contract.initial.controller.vo;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Size;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("初始合同附件")
public class ContractInitialFileVo extends BaseVo {

    // 【初始合同表】
    @Comment(value = "合同ID")
    @ApiModelProperty(value = "合同ID")
    private Long contractInitialId;

    @Comment(value = "附件类型")
    @ApiModelProperty(value = "附件类型")
    @Size(max = 20, message = "附件类型不能超过20个字符")
    private String attachmentType;

    // 【附件表】
    @Comment(value = "附件ID")
    @ApiModelProperty(value = "附件ID")
    private Long attachmentId;

    @Comment(value = "附件名称")
    @ApiModelProperty(value = "附件名称")
    @Size(max = 200, message = "附件名称不能超过200个字符")
    private String attachmentName;

    @Comment(value = "附件URL")
    @ApiModelProperty(value = "附件URL")
    @Size(max = 500, message = "附件URL不能超过500个字符")
    private String attachmentUrl;

    @Comment(value = "附件大小")
    @ApiModelProperty(value = "附件大小")
    private Long attachmentSize;

    @Comment(value = "附件上传时间")
    @ApiModelProperty(value = "附件上传时间")
    private Date attachmentUpload;

    @Comment(value = "附件上传人")
    @ApiModelProperty(value = "附件上传人")
    @Size(max = 20, message = "附件上传人不能超过20个字符")
    private String attachmentUploader;

}
